<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>浏览图书列表</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="author" content="东软信息学院计科团队，东软，计算机科学与技术系">
    <link rel="shortcut icon" href="assets/ico/favicon.html">
    <link href="/13110100825/bookstore/Public/assets/css/bootstrap.css" rel="stylesheet">
    <link href="/13110100825/bookstore/Public/assets/css/theme.css" rel="stylesheet">
    <link href="/13110100825/bookstore/Public/assets/css/font-awesome.min.css" rel="stylesheet">

    <link rel="Favicon Icon" href="/13110100825/bookstore/Public/favicon.ico">
        <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

</head>
<body>
<div id="wrap">
    <div class="navbar navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container-fluid">
                <div class="logo">
                    <img src="/13110100825/bookstore/Public/assets/img/logo.png" alt="Realm Admin Template">
                </div>
                <a class="btn btn-navbar visible-phone" data-toggle="collapse" data-target=".nav-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </a>
                <a class="btn btn-navbar slide_menu_left visible-tablet">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </a>

                <div class="top-menu visible-desktop">

                    <ul class="pull-right">
                        <li><a href="login.html"><i class="icon-off"></i> 注销</a></li>
                    </ul>
                </div>

                <div class="top-menu visible-phone visible-tablet">
                    <ul class="pull-right">
                        <li><a title="link to View all Messages page, no popover in phone view or tablet" href="#"><i class="icon-envelope"></i></a></li>
                        <li><a title="link to View all Notifications page, no popover in phone view or tablet" href="#"><i class="icon-globe"></i></a></li>
                        <li><a href="login.html"><i class="icon-off"></i></a></li>
                    </ul>
                </div>

            </div>
        </div>
    </div>

    <div class="container-fluid">

        <!-- Side menu -->
        <div class="sidebar-nav nav-collapse collapse">
            <div class="user_side clearfix">
                <img src="/13110100825/bookstore/Public/assets/img/odinn.jpg" alt="Odinn god of Thunder">
                <h5>管理员</h5>
                <a href="#"><i class="icon-cog"></i> 个人设置</a>
            </div>
            <div class="accordion" id="accordion2">
                <div class="accordion-group">
                    <div class="accordion-heading">
                        <a class="accordion-toggle b_F5C294"  data-parent="#accordion2"  data-toggle="collapse" href="#collapse0"><i class="icon-user"></i> <span>用户管理</span></a>
                    </div>
                    <div id="collapse0" class="accordion-body  collapse">
                        <div class="accordion-inner">
                            <a class="accordion-toggle" href="/13110100825/bookstore/Admin/Index/users"><i class="icon-star"></i> 浏览用户列表</a>
                        </div>
                    </div>
                </div>
                <div class="accordion-group">
                    <div class="accordion-heading">
                        <a class="accordion-toggle b_9FDDF6 collapsed" data-toggle="collapse" data-parent="#accordion2" href="#collapse1"><i class="icon-magic"></i> <span>书籍管理</span></a>
                    </div>
                    <div id="collapse1" class="accordion-body  collapse">
                        <div class="accordion-inner">
                            <a class="accordion-toggle" href="/13110100825/bookstore/Admin/Index/books"><i class="icon-star"></i> 浏览书籍列表</a>
                            <a class="accordion-toggle" href="/13110100825/bookstore/Admin/Index/addBooks"><i class="icon-circle"></i> 添加书籍</a>
                        </div>
                    </div>
                </div>

                <div class="accordion-group">
                    <div class="accordion-heading">
                        <a class="accordion-toggle b_9FDDF6 collapsed" data-toggle="collapse" data-parent="#accordion2" href="#collapse2">
                            <i class="icon-reorder"></i> <span>类别管理</span></a>
                    </div>
                    <div id="collapse2" class="accordion-body collapse">
                        <div class="accordion-inner">
                            <a class="accordion-toggle" href="/13110100825/bookstore/Admin/Index/classlist"><i class="icon-rss"></i> 类别列表</a>
                            <a class="accordion-toggle" href="/13110100825/bookstore/Admin/Index/CreateClass"><i class="icon-rss"></i> 创建类别</a>
                        </div>
                    </div>
                </div>
                <div class="accordion-group">
                    <div class="accordion-heading">
                        <a class="accordion-toggle b_9FDDF6 collapsed"  data-parent="#accordion2"  data-toggle="collapse" href="#collapse01"><i class="icon-user"></i> <span>标签管理</span></a>
                    </div>
                    <div id="collapse01" class="accordion-body  collapse">
                        <div class="accordion-inner">
                            <a class="accordion-toggle" href="/13110100825/bookstore/Admin/Index/signlist"><i class="icon-star"></i> 浏览标签列表</a>
                            <a class="accordion-toggle" href="/13110100825/bookstore/Admin/Index/addsign"><i class="icon-star"></i> 添加标签</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- Main window -->
        <div class="main_container" id="tables_page">
            <div class="row-fluid">
                <br>

                <h2 class="heading">
                    书籍列表

                </h2>
            </div>

            <div class="row-fluid">
                <div class="widget widget-padding span12">
                    <div class="widget-header">
                        <i class="icon-group"></i>
                        <h5>所有通过审核的书籍</h5>

                        <div class="widget-buttons">
                            <a href="http://www.datatables.net/usage/" data-title="Documentation" class="tip" target="_blank"><i class="icon-external-link"></i></a>
                            <a href="#" data-title="Collapse" data-collapsed="false" class="tip collapse"><i class="icon-chevron-up"></i></a>
                        </div>
                    </div>
                    <div class="widget-body">
                        <table id="booklist" class="table table-striped table-bordered dataTable">
                            <thead>
                            <tr>
                                <th width="8%">封面</th>
                                <th>书名</th>
                                <th>作者</th>
                                <th>出版社</th>
                                <th>出版年份</th>
                                <th>字数</th>
                                <th>点击次数</th>
                                <th>操作</th>

                            </tr>
                            </thead>
                            <tbody>


                            <?php if(is_array($booklist)): $i = 0; $__LIST__ = $booklist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>

                                    <td><img src="/13110100825/bookstore/Public/Uploads/image/<?php echo ($vo["pic"]); ?>" width="60" height="60"></td>
                                    <td><?php echo ($vo["bname"]); ?></td>
                                    <td><?php echo ($vo["writer"]); ?></td>
                                    <td><?php echo ($vo["issue"]); ?></td>
                                    <td><?php echo ($vo["issuetime"]); ?></td>
                                    <td><?php echo ($vo["number"]); ?></td>
                                    <td><?php echo ($vo["hit"]); ?></td>
                                    <td>
                                        <div class="btn-group">
                                            <a class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#">
                                                操作
                                            </a>
                                            <ul class="dropdown-menu pull-right">
                                                <li><a href="editBooks/bid/<?php echo ($vo["bid"]); ?>"><i class="icon-envelope"></i> 修改主要信息</a></li>
                                                <li><a href="delBooks/bid/<?php echo ($vo["bid"]); ?>" onclick="return confirm('你确定要删除吗？')"><i class="icon-remove"></i> 删除</a></li>

                                            </ul>
                                        </div>
                                    </td>

                                </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                            </tbody>

                        </table>

                        </div> <!-- /widget-body -->
                    </div> <!-- /widget -->
                </div> <!-- /row-fluid -->


                <!-- /Main window -->
            </div>
        </div><!--/.fluid-container-->
    </div><!-- wrap ends-->
</div>
<script type="text/javascript" src="/13110100825/bookstore/Public/assets/js/jquery.min.js"></script>
<script type="text/javascript" src="/13110100825/bookstore/Public/assets/js/jquery-ui.min.js"></script>
<script type="text/javascript" src="/13110100825/bookstore/Public/assets/js/raphael-min.js"></script>
<script type="text/javascript" src="/13110100825/bookstore/Public/assets/js/bootstrap.js"></script>

<script type="text/javascript" src='/13110100825/bookstore/Public/assets/js/morris.min.js'></script>
<script type="text/javascript" src="/13110100825/bookstore/Public/assets/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="/13110100825/bookstore/Public/assets/js/jquery.masonry.min.js"></script>

<script type="text/javascript" src="/13110100825/bookstore/Public/assets/js/jquery.knob.js"></script>

<script type='text/javascript' src='/13110100825/bookstore/Public/assets/js/jquery.gritter.min.js'></script>
<script type="text/javascript" src="/13110100825/bookstore/Public/assets/js/realm.js"></script>
<script>
    $(document).ready(function() {
        $(".jq_link").click(function() {
            var id = $(this).attr('rel');
            $("#forbidid").val(id);
            $("#forbidModal").modal();
        });
    });
</script>
</body>
</html>